from datetime import  *
datetime.now()
class picture:
    def __init__(self):
        pass
    def area(self):
        pass
    def circumference(self):
        pass

class Triangle(picture):
    def __init__(self,a:float,b:float,c:float):
        self.__a=a
        self.__b=b
        self.__c=c
    def circumference(self):
        return self.__a+self.__b+self.__c
    def area(self):
        p=self.circumference()/2

        return (p*(p-self.__a)*(p-self.__b)*(p-self.__c))**0.5
    def __str__(self):
        return f"三角形，边长是{self.__a},{self.__b},{self.__c}"
    def __eq__(self, other):
        print("计入了自定义的比较方法")
        if id(self)==id(other):
             return True
        a1={self.__a,self.__b,self.__c}
        a2= {other.__a,other.__b,other.__c}
        return len(a1.intersection(a2))==3
    def __gt__(self, other):
        return self.area()>other.area()